package com.jxbai.design.pattern.dcxy.builder;

/**
 * 具体建造者
 * @author jxbai
 * @date 2021/12/13
 */
public class PhoneBuilder extends AbstractPhoneBuilder{

    public PhoneBuilder() {
        this.phone = new Phone();
    }

    @Override
    AbstractPhoneBuilder cpu(String cpu) {
        this.phone.setCpu(cpu);
        return this;
    }

    @Override
    AbstractPhoneBuilder mem(String mem) {
        this.phone.setMem(mem);
        return this;
    }

    @Override
    AbstractPhoneBuilder disk(String disk) {
        this.phone.setDisk(disk);
        return this;
    }

    @Override
    AbstractPhoneBuilder camera(String camera) {
        this.phone.setCamera(camera);
        return this;
    }
}
